package com.wd.center.pattern.singleton;

//静态式/静态内部模式
public class StaticSingleton {
//    静态内部类
    private static class SingletonHolder{
    private static final StaticSingleton INSTANCE = new StaticSingleton();
    }

    private StaticSingleton() {
    }
    public static final StaticSingleton getInstance(){
        return SingletonHolder.INSTANCE;
    }
}
